﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ActiveReportsDemo.Viewers
{
    public partial class ProductIntroduceViewer : UserControl
    {

        public EventHandler HomeItemClicked;

        public ProductIntroduceViewer()
        {
            InitializeComponent();

            for (int i = 0; i < this.panel2.Controls.Count; i++)
            {
                if (this.panel2.Controls[i] is TitleControl)
                {
                    (this.panel2.Controls[i] as TitleControl).TitleClicked += new EventHandler(Title_Click);
                }
            }
        }

        private void Title_Click(object sender, EventArgs e)
        {
            if (HomeItemClicked != null)
            {
                HomeItemClicked(sender, e);
            }
        }

        private void picDownLoad_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.gcpowertools.com.cn/products/download.aspx?pid=16&from=ARDemo");
        }
    }
}
